#if !defined(AFX_MESSAGEBOX_H__19B4605F_8217_4C07_93F3_276BFD5763BE__INCLUDED_)
#define AFX_MESSAGEBOX_H__19B4605F_8217_4C07_93F3_276BFD5763BE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MessageBox.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMessageBox dialog
#include "resource.h"
#include "DBDialog.h"
#include "CommonButton.h"


class CMessageBox : public CDBDialog 
{
// Construction
public:
	CMessageBox(LPCTSTR szMsg,UINT unType,DWORD dwWaitTime,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CMessageBox)
	enum { IDD = IDD_DIALOG_MSG };
	CStatic	m_staticIcon;
	CStatic	m_static;
	CString	m_strPrompt;
	//}}AFX_DATA
	UINT    m_unType;
	HICON   m_hIcon;
	DWORD   m_dwWaitTime;
	BOOL	m_bCenterScreen;


public:
	void CenterScreen();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMessageBox)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	CCommonButton	m_btnOK;
	CCommonButton   m_btnCancel;

// Implementation
protected:
	void SetIcon();
	// Generated message map functions
	//{{AFX_MSG(CMessageBox)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MESSAGEBOX_H__19B4605F_8217_4C07_93F3_276BFD5763BE__INCLUDED_)
